<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>QCNSim: QcnSensorTrafficGenerator Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">QCNSim
   </div>
   <div id="projectbrief">Simulator for Quake-Catcher Network</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="class_qcn_sensor_traffic_generator-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QcnSensorTrafficGenerator Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>QCN Sensor Traffic Generator.  
 <a href="class_qcn_sensor_traffic_generator.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_qcn_sensor_traffic_generator_8h_source.html">QcnSensorTrafficGenerator.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for QcnSensorTrafficGenerator:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_qcn_sensor_traffic_generator.png" usemap="#QcnSensorTrafficGenerator_map" alt=""/>
  <map id="QcnSensorTrafficGenerator_map" name="QcnSensorTrafficGenerator_map">
<area href="class_traffic_generator.html" title="TrafficGenerator parent class. " alt="TrafficGenerator" shape="rect" coords="0,56,170,80"/>
<area href="class_entity.html" title="Entity class. " alt="Entity" shape="rect" coords="0,0,170,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3ba249e3aa7b69351987b78c0492c52c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#a3ba249e3aa7b69351987b78c0492c52c">QcnSensorTrafficGenerator</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;<a class="el" href="class_traffic_generator.html#a42261ccf207f61a401473a106bc0bae3">simulatorGlobals</a>, <a class="el" href="class_scheduler.html">Scheduler</a> &amp;<a class="el" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>, <a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="el" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a>, int <a class="el" href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">priority</a>, double <a class="el" href="class_qcn_sensor_traffic_generator.html#ae0c102210846bb815bb6596cb0aa7ee6">latitude</a>, double <a class="el" href="class_qcn_sensor_traffic_generator.html#aaeb48832d02be6da6879b20ccbf27932">longitude</a>, unsigned int <a class="el" href="class_qcn_sensor_traffic_generator.html#a94979da414e7b879f6c31642c3b449f6">qcnExplorerSensorId</a>=0, unsigned int <a class="el" href="class_qcn_sensor_traffic_generator.html#a7475a4d95a64a53e641ed8d7b2fd167b">regionId</a>=0)</td></tr>
<tr class="separator:a3ba249e3aa7b69351987b78c0492c52c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac121c09b6ea7003bb3dfcd2a5d9aafe3"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#ac121c09b6ea7003bb3dfcd2a5d9aafe3">createInstanceTrafficEvent</a> () override</td></tr>
<tr class="memdesc:ac121c09b6ea7003bb3dfcd2a5d9aafe3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an instance of QCN sensor traffic event.  <a href="#ac121c09b6ea7003bb3dfcd2a5d9aafe3">More...</a><br/></td></tr>
<tr class="separator:ac121c09b6ea7003bb3dfcd2a5d9aafe3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30dc77f4c344be483923bb77ec110b7e"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#a30dc77f4c344be483923bb77ec110b7e">createInstanceTrafficEvent</a> (std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>) override</td></tr>
<tr class="memdesc:a30dc77f4c344be483923bb77ec110b7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an instance of QCN sensor traffic event.  <a href="#a30dc77f4c344be483923bb77ec110b7e">More...</a><br/></td></tr>
<tr class="separator:a30dc77f4c344be483923bb77ec110b7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b1377becd2006c358ae797205e91ccb"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#a2b1377becd2006c358ae797205e91ccb">createInstanceTrafficEvent</a> (std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt; explicitRoute) override</td></tr>
<tr class="memdesc:a2b1377becd2006c358ae797205e91ccb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an instance of QCN sensor traffic event.  <a href="#a2b1377becd2006c358ae797205e91ccb">More...</a><br/></td></tr>
<tr class="separator:a2b1377becd2006c358ae797205e91ccb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b1c9af69b89d4e2a5a2ddea0de6780b"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#a0b1c9af69b89d4e2a5a2ddea0de6780b">createInstanceTrafficEvent</a> (std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt; explicitRoute) override</td></tr>
<tr class="memdesc:a0b1c9af69b89d4e2a5a2ddea0de6780b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an instance of QCN sensor traffic event.  <a href="#a0b1c9af69b89d4e2a5a2ddea0de6780b">More...</a><br/></td></tr>
<tr class="separator:a0b1c9af69b89d4e2a5a2ddea0de6780b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0217b5b3bcb3bc4aef5a4ac9adebdf51"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_protocol_data_unit.html">ProtocolDataUnit</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#a0217b5b3bcb3bc4aef5a4ac9adebdf51">createInstanceTrafficEventPdu</a> (unsigned int pduSize)</td></tr>
<tr class="memdesc:a0217b5b3bcb3bc4aef5a4ac9adebdf51"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an instance of QCN sensor traffic event with PDU.  <a href="#a0217b5b3bcb3bc4aef5a4ac9adebdf51">More...</a><br/></td></tr>
<tr class="separator:a0217b5b3bcb3bc4aef5a4ac9adebdf51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac926e3983134b17c4fb040ebb677b489"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_protocol_data_unit.html">ProtocolDataUnit</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#ac926e3983134b17c4fb040ebb677b489">createInstanceTrafficEventPdu</a> (unsigned int pduSize, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>)</td></tr>
<tr class="memdesc:ac926e3983134b17c4fb040ebb677b489"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an instance of QCN sensor traffic event.  <a href="#ac926e3983134b17c4fb040ebb677b489">More...</a><br/></td></tr>
<tr class="separator:ac926e3983134b17c4fb040ebb677b489"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41ecc6b33c820a97346bcea0a1850f7b"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_protocol_data_unit.html">ProtocolDataUnit</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#a41ecc6b33c820a97346bcea0a1850f7b">createInstanceTrafficEventPdu</a> (unsigned int pduSize, std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt; explicitRoute)</td></tr>
<tr class="memdesc:a41ecc6b33c820a97346bcea0a1850f7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an instance of QCN sensor traffic event.  <a href="#a41ecc6b33c820a97346bcea0a1850f7b">More...</a><br/></td></tr>
<tr class="separator:a41ecc6b33c820a97346bcea0a1850f7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5f0834f97f5cca88b92cbfa68b60bf1"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_protocol_data_unit.html">ProtocolDataUnit</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#ac5f0834f97f5cca88b92cbfa68b60bf1">createInstanceTrafficEventPdu</a> (unsigned int pduSize, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt; explicitRoute)</td></tr>
<tr class="memdesc:ac5f0834f97f5cca88b92cbfa68b60bf1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an instance of QCN sensor traffic event.  <a href="#ac5f0834f97f5cca88b92cbfa68b60bf1">More...</a><br/></td></tr>
<tr class="separator:ac5f0834f97f5cca88b92cbfa68b60bf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a339f12bf7824af352d0dad4d65c3e353"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#a339f12bf7824af352d0dad4d65c3e353">getLatitude</a> () const </td></tr>
<tr class="memdesc:a339f12bf7824af352d0dad4d65c3e353"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Latitude.  <a href="#a339f12bf7824af352d0dad4d65c3e353">More...</a><br/></td></tr>
<tr class="separator:a339f12bf7824af352d0dad4d65c3e353"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac35f6f0c94d934b454ad68f743bfb011"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#ac35f6f0c94d934b454ad68f743bfb011">getLongitude</a> () const </td></tr>
<tr class="memdesc:ac35f6f0c94d934b454ad68f743bfb011"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Longitude.  <a href="#ac35f6f0c94d934b454ad68f743bfb011">More...</a><br/></td></tr>
<tr class="separator:ac35f6f0c94d934b454ad68f743bfb011"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a03f7bfeab8aa2ba0178af6a67b69af"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#a5a03f7bfeab8aa2ba0178af6a67b69af">getQcnExplorerSensorId</a> () const </td></tr>
<tr class="memdesc:a5a03f7bfeab8aa2ba0178af6a67b69af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get QCN Explorer Sensor ID.  <a href="#a5a03f7bfeab8aa2ba0178af6a67b69af">More...</a><br/></td></tr>
<tr class="separator:a5a03f7bfeab8aa2ba0178af6a67b69af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a217fb0b0d8896f86c7b032f902fdb7f6"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#a217fb0b0d8896f86c7b032f902fdb7f6">getRegionId</a> () const </td></tr>
<tr class="memdesc:a217fb0b0d8896f86c7b032f902fdb7f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Region ID.  <a href="#a217fb0b0d8896f86c7b032f902fdb7f6">More...</a><br/></td></tr>
<tr class="separator:a217fb0b0d8896f86c7b032f902fdb7f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b5d0138e8eb2b3758d46f4c747f093a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#a9b5d0138e8eb2b3758d46f4c747f093a">setLatitude</a> (double <a class="el" href="class_qcn_sensor_traffic_generator.html#ae0c102210846bb815bb6596cb0aa7ee6">latitude</a>)</td></tr>
<tr class="memdesc:a9b5d0138e8eb2b3758d46f4c747f093a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Latitude.  <a href="#a9b5d0138e8eb2b3758d46f4c747f093a">More...</a><br/></td></tr>
<tr class="separator:a9b5d0138e8eb2b3758d46f4c747f093a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a838619c582b3df71b009b6cd1de56092"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#a838619c582b3df71b009b6cd1de56092">setLongitude</a> (double <a class="el" href="class_qcn_sensor_traffic_generator.html#aaeb48832d02be6da6879b20ccbf27932">longitude</a>)</td></tr>
<tr class="memdesc:a838619c582b3df71b009b6cd1de56092"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Longitude.  <a href="#a838619c582b3df71b009b6cd1de56092">More...</a><br/></td></tr>
<tr class="separator:a838619c582b3df71b009b6cd1de56092"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a375d3eaf1ce7792d46f13bd96900c914"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#a375d3eaf1ce7792d46f13bd96900c914">setQcnExplorerSensorId</a> (unsigned int <a class="el" href="class_qcn_sensor_traffic_generator.html#a94979da414e7b879f6c31642c3b449f6">qcnExplorerSensorId</a>)</td></tr>
<tr class="memdesc:a375d3eaf1ce7792d46f13bd96900c914"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set QCN Explorer Sensor Id.  <a href="#a375d3eaf1ce7792d46f13bd96900c914">More...</a><br/></td></tr>
<tr class="separator:a375d3eaf1ce7792d46f13bd96900c914"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c5683f657aa8c44344985acceae2cd1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#a7c5683f657aa8c44344985acceae2cd1">setRegionId</a> (unsigned int <a class="el" href="class_qcn_sensor_traffic_generator.html#a7475a4d95a64a53e641ed8d7b2fd167b">regionId</a>)</td></tr>
<tr class="memdesc:a7c5683f657aa8c44344985acceae2cd1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Region ID.  <a href="#a7c5683f657aa8c44344985acceae2cd1">More...</a><br/></td></tr>
<tr class="separator:a7c5683f657aa8c44344985acceae2cd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_traffic_generator"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_traffic_generator')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_traffic_generator.html">TrafficGenerator</a></td></tr>
<tr class="memitem:aad024e020fac17dbee74f0da16707df1 inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#aad024e020fac17dbee74f0da16707df1">turnOn</a> ()</td></tr>
<tr class="separator:aad024e020fac17dbee74f0da16707df1 inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1aeb5d90d269a1d1ac5316522b5233e inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#af1aeb5d90d269a1d1ac5316522b5233e">turnOff</a> ()</td></tr>
<tr class="separator:af1aeb5d90d269a1d1ac5316522b5233e inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8c16ee901079f8279fafd7411098cbd inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#ac8c16ee901079f8279fafd7411098cbd">setTokenContents</a> (std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>)</td></tr>
<tr class="separator:ac8c16ee901079f8279fafd7411098cbd inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9b21f5739748fadede79c7e4fa35ed7 inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#ab9b21f5739748fadede79c7e4fa35ed7">getTokensGeneratedCount</a> () const </td></tr>
<tr class="separator:ab9b21f5739748fadede79c7e4fa35ed7 inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac97d2e786e7c91117fbf590988eefd04 inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#ac97d2e786e7c91117fbf590988eefd04">getEventType</a> () const </td></tr>
<tr class="separator:ac97d2e786e7c91117fbf590988eefd04 inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9c53b70da6a733cb0723282b291b25f inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#aa9c53b70da6a733cb0723282b291b25f">setEventType</a> (<a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="el" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>)</td></tr>
<tr class="separator:aa9c53b70da6a733cb0723282b291b25f inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f71664ca8b268773234c1538539bebf inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a3f71664ca8b268773234c1538539bebf">getTokenContents</a> () const </td></tr>
<tr class="separator:a3f71664ca8b268773234c1538539bebf inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2247f62c33cf0875f423b58403af7042 inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a2247f62c33cf0875f423b58403af7042">getSource</a> () const </td></tr>
<tr class="separator:a2247f62c33cf0875f423b58403af7042 inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5c0ccdbf176c8aadd4b1bc7771ea326 inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#ad5c0ccdbf176c8aadd4b1bc7771ea326">setSource</a> (std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a>)</td></tr>
<tr class="separator:ad5c0ccdbf176c8aadd4b1bc7771ea326 inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb89d1eefa73ddf5ea95167bd9245b48 inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#abb89d1eefa73ddf5ea95167bd9245b48">getDestination</a> () const </td></tr>
<tr class="separator:abb89d1eefa73ddf5ea95167bd9245b48 inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9984034478b838d1f09d275e297f3309 inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a9984034478b838d1f09d275e297f3309">setDestination</a> (std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a>)</td></tr>
<tr class="separator:a9984034478b838d1f09d275e297f3309 inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_entity"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_entity')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_entity.html">Entity</a></td></tr>
<tr class="memitem:ac2da1e8a32161accc56f39ac52cebd86 inherit pub_methods_class_entity"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_entity.html#ac2da1e8a32161accc56f39ac52cebd86">~Entity</a> ()=0</td></tr>
<tr class="memdesc:ac2da1e8a32161accc56f39ac52cebd86 inherit pub_methods_class_entity"><td class="mdescLeft">&#160;</td><td class="mdescRight">Make this abstract (pure virtual), cannot be instantiated.  <a href="#ac2da1e8a32161accc56f39ac52cebd86">More...</a><br/></td></tr>
<tr class="separator:ac2da1e8a32161accc56f39ac52cebd86 inherit pub_methods_class_entity"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:ae0c102210846bb815bb6596cb0aa7ee6"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#ae0c102210846bb815bb6596cb0aa7ee6">latitude</a></td></tr>
<tr class="memdesc:ae0c102210846bb815bb6596cb0aa7ee6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Latitude of this sensor.  <a href="#ae0c102210846bb815bb6596cb0aa7ee6">More...</a><br/></td></tr>
<tr class="separator:ae0c102210846bb815bb6596cb0aa7ee6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaeb48832d02be6da6879b20ccbf27932"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#aaeb48832d02be6da6879b20ccbf27932">longitude</a></td></tr>
<tr class="memdesc:aaeb48832d02be6da6879b20ccbf27932"><td class="mdescLeft">&#160;</td><td class="mdescRight">Longitude of this sensor.  <a href="#aaeb48832d02be6da6879b20ccbf27932">More...</a><br/></td></tr>
<tr class="separator:aaeb48832d02be6da6879b20ccbf27932"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94979da414e7b879f6c31642c3b449f6"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#a94979da414e7b879f6c31642c3b449f6">qcnExplorerSensorId</a></td></tr>
<tr class="memdesc:a94979da414e7b879f6c31642c3b449f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sensor ID as assigned by QCNExplorer.  <a href="#a94979da414e7b879f6c31642c3b449f6">More...</a><br/></td></tr>
<tr class="separator:a94979da414e7b879f6c31642c3b449f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7475a4d95a64a53e641ed8d7b2fd167b"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qcn_sensor_traffic_generator.html#a7475a4d95a64a53e641ed8d7b2fd167b">regionId</a></td></tr>
<tr class="memdesc:a7475a4d95a64a53e641ed8d7b2fd167b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Region ID as assigned by QCNExplorer.  <a href="#a7475a4d95a64a53e641ed8d7b2fd167b">More...</a><br/></td></tr>
<tr class="separator:a7475a4d95a64a53e641ed8d7b2fd167b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_class_traffic_generator"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_traffic_generator')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="class_traffic_generator.html">TrafficGenerator</a></td></tr>
<tr class="memitem:a6fcdb1ce1b3fb4f35c021ea8b99f6cf5 inherit pro_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a6fcdb1ce1b3fb4f35c021ea8b99f6cf5">TrafficGenerator</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;<a class="el" href="class_traffic_generator.html#a42261ccf207f61a401473a106bc0bae3">simulatorGlobals</a>, <a class="el" href="class_scheduler.html">Scheduler</a> &amp;<a class="el" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>, <a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="el" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a>, int <a class="el" href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">priority</a>)</td></tr>
<tr class="separator:a6fcdb1ce1b3fb4f35c021ea8b99f6cf5 inherit pro_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa805566ed505ad0f90982610bcf3869a inherit pro_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#aa805566ed505ad0f90982610bcf3869a">TrafficGenerator</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;<a class="el" href="class_traffic_generator.html#a42261ccf207f61a401473a106bc0bae3">simulatorGlobals</a>, <a class="el" href="class_scheduler.html">Scheduler</a> &amp;<a class="el" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>, <a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="el" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a>, int <a class="el" href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">priority</a>, unsigned int seed)</td></tr>
<tr class="separator:aa805566ed505ad0f90982610bcf3869a inherit pro_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_traffic_generator"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_traffic_generator')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_traffic_generator.html">TrafficGenerator</a></td></tr>
<tr class="memitem:a9569cd494b926b84f384c7380349d51a inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_scheduler.html">Scheduler</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a></td></tr>
<tr class="memdesc:a9569cd494b926b84f384c7380349d51a inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference to <a class="el" href="class_scheduler.html" title="Scheduler class. ">Scheduler</a> object, such that traffic generators may schedule their events.  <a href="#a9569cd494b926b84f384c7380349d51a">More...</a><br/></td></tr>
<tr class="separator:a9569cd494b926b84f384c7380349d51a inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42261ccf207f61a401473a106bc0bae3 inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a42261ccf207f61a401473a106bc0bae3">simulatorGlobals</a></td></tr>
<tr class="memdesc:a42261ccf207f61a401473a106bc0bae3 inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference to <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object, to get random generator info.  <a href="#a42261ccf207f61a401473a106bc0bae3">More...</a><br/></td></tr>
<tr class="separator:a42261ccf207f61a401473a106bc0bae3 inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84eef27cdbfa66bbf8c14e0128196a62 inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a></td></tr>
<tr class="memdesc:a84eef27cdbfa66bbf8c14e0128196a62 inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_event.html" title="Event class. ">Event</a> type that this generator will produce.  <a href="#a84eef27cdbfa66bbf8c14e0128196a62">More...</a><br/></td></tr>
<tr class="separator:a84eef27cdbfa66bbf8c14e0128196a62 inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb5d8009cf49ff99a6fee75ec456e166 inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a></td></tr>
<tr class="memdesc:acb5d8009cf49ff99a6fee75ec456e166 inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference to <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object that will be carried by the token.  <a href="#acb5d8009cf49ff99a6fee75ec456e166">More...</a><br/></td></tr>
<tr class="separator:acb5d8009cf49ff99a6fee75ec456e166 inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f69b85034831c2c40e789b0c0e11511 inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a></td></tr>
<tr class="memdesc:a4f69b85034831c2c40e789b0c0e11511 inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_entity.html" title="Entity class. ">Entity</a> to which the generator is attached (to which tokens are generated).  <a href="#a4f69b85034831c2c40e789b0c0e11511">More...</a><br/></td></tr>
<tr class="separator:a4f69b85034831c2c40e789b0c0e11511 inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ba09ea9c5df93de64af75886df0b11b inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a></td></tr>
<tr class="memdesc:a6ba09ea9c5df93de64af75886df0b11b inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destination entity, to which the generated tokens will be sent.  <a href="#a6ba09ea9c5df93de64af75886df0b11b">More...</a><br/></td></tr>
<tr class="separator:a6ba09ea9c5df93de64af75886df0b11b inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2158c9e714171e5a04032571021b23c4 inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">priority</a></td></tr>
<tr class="memdesc:a2158c9e714171e5a04032571021b23c4 inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_token.html" title="Token class. ">Token</a> priority. Higher priority, higher number.  <a href="#a2158c9e714171e5a04032571021b23c4">More...</a><br/></td></tr>
<tr class="separator:a2158c9e714171e5a04032571021b23c4 inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa73cfc4e885ecfeecbe894efd232493 inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#aaa73cfc4e885ecfeecbe894efd232493">isOn</a></td></tr>
<tr class="memdesc:aaa73cfc4e885ecfeecbe894efd232493 inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if generator is on (and generating traffic); false if generator is off.  <a href="#aaa73cfc4e885ecfeecbe894efd232493">More...</a><br/></td></tr>
<tr class="separator:aaa73cfc4e885ecfeecbe894efd232493 inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29c9cdcb113742700e3f7fcbcb7ee325 inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a29c9cdcb113742700e3f7fcbcb7ee325">tokensGeneratedCount</a></td></tr>
<tr class="memdesc:a29c9cdcb113742700e3f7fcbcb7ee325 inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Count of tokens (events) generated by this traffic generator.  <a href="#a29c9cdcb113742700e3f7fcbcb7ee325">More...</a><br/></td></tr>
<tr class="separator:a29c9cdcb113742700e3f7fcbcb7ee325 inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>QCN Sensor Traffic Generator. </p>
<dl class="section author"><dt>Author</dt><dd>Marcos Portnoi </dd></dl>
<dl class="section date"><dt>Date</dt><dd>October 2013</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2013 University of Delaware. </dd>
<dd>
QCNSim uses elements of TARVOS simulator, Copyright (C) 2005, 2006, 2007 Marcos Portnoi. </dd></dl>
<dl class="section user"><dt></dt><dd>This file is part of QCNSim. QCNSim is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br/>
 QCNSim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.<br/>
 You should have received a copy of the GNU Lesser General Public License along with QCNSim. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </dd></dl>
<dl class="section user"><dt>Description</dt><dd>This class implements a Quake-Catcher Network Sensor Traffic Generator. Basically, a simulated sensor will be triggered by a seismic event, and then the sensor will produce a PDU to be sent to a BOINC server. This PDU may contain information such as time of observed event, magnitude, and other sensor-related information.* </dd></dl>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8h_source.html#l00035">35</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8h_source.html">QcnSensorTrafficGenerator.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a3ba249e3aa7b69351987b78c0492c52c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QcnSensorTrafficGenerator::QcnSensorTrafficGenerator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;&#160;</td>
          <td class="paramname"><em>simulatorGlobals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_scheduler.html">Scheduler</a> &amp;&#160;</td>
          <td class="paramname"><em>scheduler</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a>&#160;</td>
          <td class="paramname"><em>eventType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>tokenContents</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>destination</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>latitude</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>longitude</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>qcnExplorerSensorId</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>regionId</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section author"><dt>Author</dt><dd>Marcos Portnoi </dd></dl>
<dl class="section date"><dt>Date</dt><dd>November 2013</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2013 University of Delaware. </dd>
<dd>
QCNSim uses elements of TARVOS simulator, Copyright (C) 2005, 2006, 2007 Marcos Portnoi. </dd></dl>
<dl class="section user"><dt></dt><dd>This file is part of QCNSim. QCNSim is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br/>
 QCNSim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.<br/>
 You should have received a copy of the GNU Lesser General Public License along with QCNSim. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. Constructor with parameter.</dd></dl>
<p>This generator resembles the QCN sensors created in QCN Explorer. Typically, a QCN sensor traffic generator will be triggered by a seismic event and will create one PDU message to be sent to its destination BOINC server or node.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">simulatorGlobals</td><td>Reference to <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object, necessary to fullfil TraffiGenerator constructor reference parameter. </td></tr>
    <tr><td class="paramname">scheduler</td><td>Reference to <a class="el" href="class_scheduler.html" title="Scheduler class. ">Scheduler</a> object, such that traffic generators may schedule their events. </td></tr>
    <tr><td class="paramname">eventType</td><td><a class="el" href="class_event.html" title="Event class. ">Event</a> type that this generator will produce. </td></tr>
    <tr><td class="paramname">tokenContents</td><td>Reference to <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object that will be carried by the token. </td></tr>
    <tr><td class="paramname">source</td><td><a class="el" href="class_entity.html" title="Entity class. ">Entity</a> to which the generator is attached (to which tokens are generated). </td></tr>
    <tr><td class="paramname">destination</td><td>Destination entity, to which the generated tokens will be sent. </td></tr>
    <tr><td class="paramname">priority</td><td><a class="el" href="class_token.html" title="Token class. ">Token</a> priority. Higher priority, higher number. </td></tr>
    <tr><td class="paramname">latitude</td><td>Latitude of this sensor. </td></tr>
    <tr><td class="paramname">longitude</td><td>Longitude of this sensor. </td></tr>
    <tr><td class="paramname">qcnExplorerSensorId</td><td>Sensor ID as assigned by QCNExplorer. </td></tr>
    <tr><td class="paramname">regionId</td><td>Region ID as assigned by QCNExplorer. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00041">41</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;                                                                : <a class="code" href="class_traffic_generator.html#a6fcdb1ce1b3fb4f35c021ea8b99f6cf5">TrafficGenerator</a>(simulatorGlobals, scheduler, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, <a class="code" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>,</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        <a class="code" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a>, <a class="code" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a>, <a class="code" href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">priority</a>), <a class="code" href="class_qcn_sensor_traffic_generator.html#ae0c102210846bb815bb6596cb0aa7ee6">latitude</a>(<a class="code" href="class_qcn_sensor_traffic_generator.html#ae0c102210846bb815bb6596cb0aa7ee6">latitude</a>), <a class="code" href="class_qcn_sensor_traffic_generator.html#aaeb48832d02be6da6879b20ccbf27932">longitude</a>(<a class="code" href="class_qcn_sensor_traffic_generator.html#aaeb48832d02be6da6879b20ccbf27932">longitude</a>), <a class="code" href="class_qcn_sensor_traffic_generator.html#a94979da414e7b879f6c31642c3b449f6">qcnExplorerSensorId</a>(<a class="code" href="class_qcn_sensor_traffic_generator.html#a94979da414e7b879f6c31642c3b449f6">qcnExplorerSensorId</a>),</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <a class="code" href="class_qcn_sensor_traffic_generator.html#a7475a4d95a64a53e641ed8d7b2fd167b">regionId</a>(<a class="code" href="class_qcn_sensor_traffic_generator.html#a7475a4d95a64a53e641ed8d7b2fd167b">regionId</a>) {</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;}</div>
<div class="ttc" id="class_traffic_generator_html_a6fcdb1ce1b3fb4f35c021ea8b99f6cf5"><div class="ttname"><a href="class_traffic_generator.html#a6fcdb1ce1b3fb4f35c021ea8b99f6cf5">TrafficGenerator::TrafficGenerator</a></div><div class="ttdeci">TrafficGenerator(SimulatorGlobals &amp;simulatorGlobals, Scheduler &amp;scheduler, EventType eventType, std::shared_ptr&lt; Entity &gt; tokenContents, std::shared_ptr&lt; Entity &gt; source, std::shared_ptr&lt; Entity &gt; destination, int priority)</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00037">TrafficGenerator.cpp:37</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_aaeb48832d02be6da6879b20ccbf27932"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#aaeb48832d02be6da6879b20ccbf27932">QcnSensorTrafficGenerator::longitude</a></div><div class="ttdeci">double longitude</div><div class="ttdoc">Longitude of this sensor. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00038">QcnSensorTrafficGenerator.h:38</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_ae0c102210846bb815bb6596cb0aa7ee6"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#ae0c102210846bb815bb6596cb0aa7ee6">QcnSensorTrafficGenerator::latitude</a></div><div class="ttdeci">double latitude</div><div class="ttdoc">Latitude of this sensor. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00037">QcnSensorTrafficGenerator.h:37</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_acb5d8009cf49ff99a6fee75ec456e166"><div class="ttname"><a href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">TrafficGenerator::tokenContents</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; tokenContents</div><div class="ttdoc">Reference to Entity object that will be carried by the token. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00046">TrafficGenerator.h:46</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a2158c9e714171e5a04032571021b23c4"><div class="ttname"><a href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">TrafficGenerator::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00049">TrafficGenerator.h:49</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a94979da414e7b879f6c31642c3b449f6"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a94979da414e7b879f6c31642c3b449f6">QcnSensorTrafficGenerator::qcnExplorerSensorId</a></div><div class="ttdeci">unsigned int qcnExplorerSensorId</div><div class="ttdoc">Sensor ID as assigned by QCNExplorer. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00039">QcnSensorTrafficGenerator.h:39</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a7475a4d95a64a53e641ed8d7b2fd167b"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a7475a4d95a64a53e641ed8d7b2fd167b">QcnSensorTrafficGenerator::regionId</a></div><div class="ttdeci">unsigned int regionId</div><div class="ttdoc">Region ID as assigned by QCNExplorer. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00040">QcnSensorTrafficGenerator.h:40</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a4f69b85034831c2c40e789b0c0e11511"><div class="ttname"><a href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">TrafficGenerator::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Entity to which the generator is attached (to which tokens are generated). </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00047">TrafficGenerator.h:47</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a6ba09ea9c5df93de64af75886df0b11b"><div class="ttname"><a href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">TrafficGenerator::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity, to which the generated tokens will be sent. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00048">TrafficGenerator.h:48</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ac121c09b6ea7003bb3dfcd2a5d9aafe3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt; QcnSensorTrafficGenerator::createInstanceTrafficEvent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates an instance of QCN sensor traffic event. </p>
<p>Calls parent function and complements with event generation. Uses member variable tokenContents. The instance is scheduled to occur immediately, i.e., at 0.0 delay.</p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_token.html" title="Token class. ">Token</a> that was generated, per the class constructor parameters and if generator is On. Otherwise, returns NULL. </dd></dl>

<p>Implements <a class="el" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator</a>.</p>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00058">58</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;                                                                           {</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>();</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keywordflow">if</span> (token != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    }</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;}</div>
<div class="ttc" id="class_event_html"><div class="ttname"><a href="class_event.html">Event</a></div><div class="ttdoc">Event class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00035">Event.h:35</a></div></div>
<div class="ttc" id="class_scheduler_html_ae84f19f548d606f50fba69d00fe691b1"><div class="ttname"><a href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">Scheduler::schedule</a></div><div class="ttdeci">void schedule(const Event &amp;event)</div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8cpp_source.html#l00056">Scheduler.cpp:56</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a1c68df7f3572cb0cbbac0b70d6bdd38f"><div class="ttname"><a href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent()=0</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00074">TrafficGenerator.cpp:74</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9569cd494b926b84f384c7380349d51a"><div class="ttname"><a href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">TrafficGenerator::scheduler</a></div><div class="ttdeci">Scheduler &amp; scheduler</div><div class="ttdoc">Reference to Scheduler object, such that traffic generators may schedule their events. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00043">TrafficGenerator.h:43</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a30dc77f4c344be483923bb77ec110b7e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt; QcnSensorTrafficGenerator::createInstanceTrafficEvent </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>tokenContents</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates an instance of QCN sensor traffic event. </p>
<p>Calls parent function and complements with event generation. Uses member variable tokenContents. The instance is scheduled to occur immediately, i.e., at 0.0 delay.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tokenContents</td><td>Reference to <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object that will be carried by the token.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_token.html" title="Token class. ">Token</a> that was generated, per the class constructor parameters and if generator is On. Otherwise, returns NULL. </dd></dl>

<p>Implements <a class="el" href="class_traffic_generator.html#a91a4d92d755dc066face0f02e20e33cd">TrafficGenerator</a>.</p>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00079">79</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                                                                                                              {</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>(<a class="code" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordflow">if</span> (token != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    }</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;}</div>
<div class="ttc" id="class_event_html"><div class="ttname"><a href="class_event.html">Event</a></div><div class="ttdoc">Event class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00035">Event.h:35</a></div></div>
<div class="ttc" id="class_scheduler_html_ae84f19f548d606f50fba69d00fe691b1"><div class="ttname"><a href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">Scheduler::schedule</a></div><div class="ttdeci">void schedule(const Event &amp;event)</div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8cpp_source.html#l00056">Scheduler.cpp:56</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_acb5d8009cf49ff99a6fee75ec456e166"><div class="ttname"><a href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">TrafficGenerator::tokenContents</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; tokenContents</div><div class="ttdoc">Reference to Entity object that will be carried by the token. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00046">TrafficGenerator.h:46</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a1c68df7f3572cb0cbbac0b70d6bdd38f"><div class="ttname"><a href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent()=0</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00074">TrafficGenerator.cpp:74</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9569cd494b926b84f384c7380349d51a"><div class="ttname"><a href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">TrafficGenerator::scheduler</a></div><div class="ttdeci">Scheduler &amp; scheduler</div><div class="ttdoc">Reference to Scheduler object, such that traffic generators may schedule their events. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00043">TrafficGenerator.h:43</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a2b1377becd2006c358ae797205e91ccb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt; QcnSensorTrafficGenerator::createInstanceTrafficEvent </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>explicitRoute</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates an instance of QCN sensor traffic event. </p>
<p>Calls parent function and complements with event generation. Uses member variable tokenContents. The instance is scheduled to occur immediately, i.e., at 0.0 delay.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">explicitRoute</td><td>Vector containing a list of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> objects representing the route to be followed by a token/PDU.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_token.html" title="Token class. ">Token</a> that was generated, per the class constructor parameters and if generator is On. Otherwise, returns NULL. </dd></dl>

<p>Implements <a class="el" href="class_traffic_generator.html#affffde5231f4a7411b154a43cf06da2f">TrafficGenerator</a>.</p>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00100">100</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;                                                                                                                         {</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>(explicitRoute);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="keywordflow">if</span> (token != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    }</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;}</div>
<div class="ttc" id="class_event_html"><div class="ttname"><a href="class_event.html">Event</a></div><div class="ttdoc">Event class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00035">Event.h:35</a></div></div>
<div class="ttc" id="class_scheduler_html_ae84f19f548d606f50fba69d00fe691b1"><div class="ttname"><a href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">Scheduler::schedule</a></div><div class="ttdeci">void schedule(const Event &amp;event)</div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8cpp_source.html#l00056">Scheduler.cpp:56</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a1c68df7f3572cb0cbbac0b70d6bdd38f"><div class="ttname"><a href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent()=0</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00074">TrafficGenerator.cpp:74</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9569cd494b926b84f384c7380349d51a"><div class="ttname"><a href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">TrafficGenerator::scheduler</a></div><div class="ttdeci">Scheduler &amp; scheduler</div><div class="ttdoc">Reference to Scheduler object, such that traffic generators may schedule their events. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00043">TrafficGenerator.h:43</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a0b1c9af69b89d4e2a5a2ddea0de6780b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt; QcnSensorTrafficGenerator::createInstanceTrafficEvent </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>tokenContents</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>explicitRoute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates an instance of QCN sensor traffic event. </p>
<p>Calls parent function and complements with event generation. Uses member variable tokenContents. The instance is scheduled to occur immediately, i.e., at 0.0 delay.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tokenContents</td><td>Reference to <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object that will be carried by the token. </td></tr>
    <tr><td class="paramname">explicitRoute</td><td>Vector containing a list of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> objects representing the route to be followed by a token/PDU.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_token.html" title="Token class. ">Token</a> that was generated, per the class constructor parameters and if generator is On. Otherwise, returns NULL. </dd></dl>

<p>Implements <a class="el" href="class_traffic_generator.html#a0b2ad79508cd35ada22d52c504547405">TrafficGenerator</a>.</p>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00122">122</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;                                                                                                                                                              {</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>(<a class="code" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, explicitRoute);</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <span class="keywordflow">if</span> (token != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    }</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;}</div>
<div class="ttc" id="class_event_html"><div class="ttname"><a href="class_event.html">Event</a></div><div class="ttdoc">Event class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00035">Event.h:35</a></div></div>
<div class="ttc" id="class_scheduler_html_ae84f19f548d606f50fba69d00fe691b1"><div class="ttname"><a href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">Scheduler::schedule</a></div><div class="ttdeci">void schedule(const Event &amp;event)</div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8cpp_source.html#l00056">Scheduler.cpp:56</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_acb5d8009cf49ff99a6fee75ec456e166"><div class="ttname"><a href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">TrafficGenerator::tokenContents</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; tokenContents</div><div class="ttdoc">Reference to Entity object that will be carried by the token. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00046">TrafficGenerator.h:46</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a1c68df7f3572cb0cbbac0b70d6bdd38f"><div class="ttname"><a href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent()=0</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00074">TrafficGenerator.cpp:74</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9569cd494b926b84f384c7380349d51a"><div class="ttname"><a href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">TrafficGenerator::scheduler</a></div><div class="ttdeci">Scheduler &amp; scheduler</div><div class="ttdoc">Reference to Scheduler object, such that traffic generators may schedule their events. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00043">TrafficGenerator.h:43</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a0217b5b3bcb3bc4aef5a4ac9adebdf51"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="class_protocol_data_unit.html">ProtocolDataUnit</a> &gt; QcnSensorTrafficGenerator::createInstanceTrafficEventPdu </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pduSize</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates an instance of QCN sensor traffic event with PDU. </p>
<p>Calls parent function and complements with event generation. Uses member variable tokenContents. The instance is scheduled to occur immediately, i.e., at 0.0 delay.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pduSize</td><td>Size of PDU to generate.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>PDU that was generated, per the class constructor parameters and if generator is On. Otherwise, returns nullptr. </dd></dl>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00215">215</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;                                                                                                             {</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    std::shared_ptr&lt;ProtocolDataUnit&gt; pdu(<span class="keyword">new</span> <a class="code" href="class_protocol_data_unit.html">ProtocolDataUnit</a>(<a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>(), pduSize));</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <span class="keywordflow">if</span> (pdu != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, pdu));</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    }</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <span class="keywordflow">return</span> pdu;</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;}</div>
<div class="ttc" id="class_protocol_data_unit_html"><div class="ttname"><a href="class_protocol_data_unit.html">ProtocolDataUnit</a></div><div class="ttdoc">Protocol Data Unit class. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00033">ProtocolDataUnit.h:33</a></div></div>
<div class="ttc" id="class_event_html"><div class="ttname"><a href="class_event.html">Event</a></div><div class="ttdoc">Event class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00035">Event.h:35</a></div></div>
<div class="ttc" id="class_scheduler_html_ae84f19f548d606f50fba69d00fe691b1"><div class="ttname"><a href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">Scheduler::schedule</a></div><div class="ttdeci">void schedule(const Event &amp;event)</div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8cpp_source.html#l00056">Scheduler.cpp:56</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a1c68df7f3572cb0cbbac0b70d6bdd38f"><div class="ttname"><a href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent()=0</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00074">TrafficGenerator.cpp:74</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9569cd494b926b84f384c7380349d51a"><div class="ttname"><a href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">TrafficGenerator::scheduler</a></div><div class="ttdeci">Scheduler &amp; scheduler</div><div class="ttdoc">Reference to Scheduler object, such that traffic generators may schedule their events. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00043">TrafficGenerator.h:43</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="ac926e3983134b17c4fb040ebb677b489"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="class_protocol_data_unit.html">ProtocolDataUnit</a> &gt; QcnSensorTrafficGenerator::createInstanceTrafficEventPdu </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pduSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>pduContents</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates an instance of QCN sensor traffic event. </p>
<p>Calls parent function and complements with event generation. Uses member variable tokenContents. The instance is scheduled to occur immediately, i.e., at 0.0 delay.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pduSize</td><td>Size of PDU to generate. </td></tr>
    <tr><td class="paramname">pduContents</td><td>Reference to <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object that will be carried by the token.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>PDU that was generated, per the class constructor parameters and if generator is On. Otherwise, returns NULL. </dd></dl>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00237">237</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;                                                                                                                                                {</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <span class="comment">// Creates a PDU and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    std::shared_ptr&lt;ProtocolDataUnit&gt; pdu(<span class="keyword">new</span> <a class="code" href="class_protocol_data_unit.html">ProtocolDataUnit</a>(<a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>(pduContents), pduSize));</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    <span class="keywordflow">if</span> (pdu != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, pdu));</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    }</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    <span class="keywordflow">return</span> pdu;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;}</div>
<div class="ttc" id="class_protocol_data_unit_html"><div class="ttname"><a href="class_protocol_data_unit.html">ProtocolDataUnit</a></div><div class="ttdoc">Protocol Data Unit class. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00033">ProtocolDataUnit.h:33</a></div></div>
<div class="ttc" id="class_event_html"><div class="ttname"><a href="class_event.html">Event</a></div><div class="ttdoc">Event class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00035">Event.h:35</a></div></div>
<div class="ttc" id="class_scheduler_html_ae84f19f548d606f50fba69d00fe691b1"><div class="ttname"><a href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">Scheduler::schedule</a></div><div class="ttdeci">void schedule(const Event &amp;event)</div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8cpp_source.html#l00056">Scheduler.cpp:56</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a1c68df7f3572cb0cbbac0b70d6bdd38f"><div class="ttname"><a href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent()=0</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00074">TrafficGenerator.cpp:74</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9569cd494b926b84f384c7380349d51a"><div class="ttname"><a href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">TrafficGenerator::scheduler</a></div><div class="ttdeci">Scheduler &amp; scheduler</div><div class="ttdoc">Reference to Scheduler object, such that traffic generators may schedule their events. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00043">TrafficGenerator.h:43</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a41ecc6b33c820a97346bcea0a1850f7b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="class_protocol_data_unit.html">ProtocolDataUnit</a> &gt; QcnSensorTrafficGenerator::createInstanceTrafficEventPdu </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pduSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>explicitRoute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates an instance of QCN sensor traffic event. </p>
<p>Calls parent function and complements with event generation. Uses member variable tokenContents. The instance is scheduled to occur immediately, i.e., at 0.0 delay.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pduSize</td><td>Size of PDU to generate. </td></tr>
    <tr><td class="paramname">explicitRoute</td><td>Vector containing a list of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> objects representing the route to be followed by a token/PDU.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>PDU that was generated, per the class constructor parameters and if generator is On. Otherwise, returns NULL. </dd></dl>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00259">259</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                                                                                                                                                             {</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    <span class="comment">// Creates a PDU and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    std::shared_ptr&lt;ProtocolDataUnit&gt; pdu(<span class="keyword">new</span> <a class="code" href="class_protocol_data_unit.html">ProtocolDataUnit</a>(<a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>(explicitRoute), pduSize));</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    <span class="keywordflow">if</span> (pdu != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, pdu));</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    }</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;    <span class="keywordflow">return</span> pdu;</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;}</div>
<div class="ttc" id="class_protocol_data_unit_html"><div class="ttname"><a href="class_protocol_data_unit.html">ProtocolDataUnit</a></div><div class="ttdoc">Protocol Data Unit class. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00033">ProtocolDataUnit.h:33</a></div></div>
<div class="ttc" id="class_event_html"><div class="ttname"><a href="class_event.html">Event</a></div><div class="ttdoc">Event class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00035">Event.h:35</a></div></div>
<div class="ttc" id="class_scheduler_html_ae84f19f548d606f50fba69d00fe691b1"><div class="ttname"><a href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">Scheduler::schedule</a></div><div class="ttdeci">void schedule(const Event &amp;event)</div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8cpp_source.html#l00056">Scheduler.cpp:56</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a1c68df7f3572cb0cbbac0b70d6bdd38f"><div class="ttname"><a href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent()=0</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00074">TrafficGenerator.cpp:74</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9569cd494b926b84f384c7380349d51a"><div class="ttname"><a href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">TrafficGenerator::scheduler</a></div><div class="ttdeci">Scheduler &amp; scheduler</div><div class="ttdoc">Reference to Scheduler object, such that traffic generators may schedule their events. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00043">TrafficGenerator.h:43</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="ac5f0834f97f5cca88b92cbfa68b60bf1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="class_protocol_data_unit.html">ProtocolDataUnit</a> &gt; QcnSensorTrafficGenerator::createInstanceTrafficEventPdu </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pduSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>tokenContents</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>explicitRoute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates an instance of QCN sensor traffic event. </p>
<p>Calls parent function and complements with event generation. Uses member variable tokenContents. The instance is scheduled to occur immediately, i.e., at 0.0 delay.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pduSize</td><td>Size of PDU to generate. </td></tr>
    <tr><td class="paramname">tokenContents</td><td>Reference to <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object that will be carried by the token. </td></tr>
    <tr><td class="paramname">explicitRoute</td><td>Vector containing a list of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> objects representing the route to be followed by a token/PDU.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>PDU that was generated, per the class constructor parameters and if generator is On. Otherwise, returns NULL. </dd></dl>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00282">282</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;                                                                                                                                           {</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    <span class="comment">// Creates a PDU and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    std::shared_ptr&lt;ProtocolDataUnit&gt; pdu(<span class="keyword">new</span> <a class="code" href="class_protocol_data_unit.html">ProtocolDataUnit</a>(<a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>(<a class="code" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, explicitRoute), pduSize));</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <span class="keywordflow">if</span> (pdu != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, pdu));</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    }</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;    <span class="keywordflow">return</span> pdu;</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;}</div>
<div class="ttc" id="class_protocol_data_unit_html"><div class="ttname"><a href="class_protocol_data_unit.html">ProtocolDataUnit</a></div><div class="ttdoc">Protocol Data Unit class. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00033">ProtocolDataUnit.h:33</a></div></div>
<div class="ttc" id="class_event_html"><div class="ttname"><a href="class_event.html">Event</a></div><div class="ttdoc">Event class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00035">Event.h:35</a></div></div>
<div class="ttc" id="class_scheduler_html_ae84f19f548d606f50fba69d00fe691b1"><div class="ttname"><a href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">Scheduler::schedule</a></div><div class="ttdeci">void schedule(const Event &amp;event)</div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8cpp_source.html#l00056">Scheduler.cpp:56</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_acb5d8009cf49ff99a6fee75ec456e166"><div class="ttname"><a href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">TrafficGenerator::tokenContents</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; tokenContents</div><div class="ttdoc">Reference to Entity object that will be carried by the token. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00046">TrafficGenerator.h:46</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a1c68df7f3572cb0cbbac0b70d6bdd38f"><div class="ttname"><a href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent()=0</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00074">TrafficGenerator.cpp:74</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9569cd494b926b84f384c7380349d51a"><div class="ttname"><a href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">TrafficGenerator::scheduler</a></div><div class="ttdeci">Scheduler &amp; scheduler</div><div class="ttdoc">Reference to Scheduler object, such that traffic generators may schedule their events. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00043">TrafficGenerator.h:43</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a339f12bf7824af352d0dad4d65c3e353"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double QcnSensorTrafficGenerator::getLatitude </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get Latitude. </p>
<dl class="section return"><dt>Returns</dt><dd>Latitude of sensor. </dd></dl>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00136">136</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;                                                    {</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#ae0c102210846bb815bb6596cb0aa7ee6">latitude</a>;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;}</div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_ae0c102210846bb815bb6596cb0aa7ee6"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#ae0c102210846bb815bb6596cb0aa7ee6">QcnSensorTrafficGenerator::latitude</a></div><div class="ttdeci">double latitude</div><div class="ttdoc">Latitude of this sensor. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00037">QcnSensorTrafficGenerator.h:37</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="ac35f6f0c94d934b454ad68f743bfb011"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double QcnSensorTrafficGenerator::getLongitude </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get Longitude. </p>
<dl class="section return"><dt>Returns</dt><dd>Longitude of sensor. </dd></dl>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00145">145</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;                                                     {</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#aaeb48832d02be6da6879b20ccbf27932">longitude</a>;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;}</div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_aaeb48832d02be6da6879b20ccbf27932"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#aaeb48832d02be6da6879b20ccbf27932">QcnSensorTrafficGenerator::longitude</a></div><div class="ttdeci">double longitude</div><div class="ttdoc">Longitude of this sensor. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00038">QcnSensorTrafficGenerator.h:38</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a5a03f7bfeab8aa2ba0178af6a67b69af"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int QcnSensorTrafficGenerator::getQcnExplorerSensorId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get QCN Explorer Sensor ID. </p>
<dl class="section return"><dt>Returns</dt><dd>Sensor ID as assigned by QCN Explorer. </dd></dl>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00154">154</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;                                                                     {</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#a94979da414e7b879f6c31642c3b449f6">qcnExplorerSensorId</a>;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;}</div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a94979da414e7b879f6c31642c3b449f6"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a94979da414e7b879f6c31642c3b449f6">QcnSensorTrafficGenerator::qcnExplorerSensorId</a></div><div class="ttdeci">unsigned int qcnExplorerSensorId</div><div class="ttdoc">Sensor ID as assigned by QCNExplorer. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00039">QcnSensorTrafficGenerator.h:39</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a217fb0b0d8896f86c7b032f902fdb7f6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int QcnSensorTrafficGenerator::getRegionId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get Region ID. </p>
<dl class="section return"><dt>Returns</dt><dd>Region ID as assigned by QCN Explorer. </dd></dl>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00163">163</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;                                                          {</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#a7475a4d95a64a53e641ed8d7b2fd167b">regionId</a>;</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;}</div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a7475a4d95a64a53e641ed8d7b2fd167b"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a7475a4d95a64a53e641ed8d7b2fd167b">QcnSensorTrafficGenerator::regionId</a></div><div class="ttdeci">unsigned int regionId</div><div class="ttdoc">Region ID as assigned by QCNExplorer. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00040">QcnSensorTrafficGenerator.h:40</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a9b5d0138e8eb2b3758d46f4c747f093a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QcnSensorTrafficGenerator::setLatitude </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>latitude</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set Latitude. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">latitude</td><td>Latitude of sensor. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00172">172</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;                                                           {</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    this-&gt;<a class="code" href="class_qcn_sensor_traffic_generator.html#ae0c102210846bb815bb6596cb0aa7ee6">latitude</a> = <a class="code" href="class_qcn_sensor_traffic_generator.html#ae0c102210846bb815bb6596cb0aa7ee6">latitude</a>;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;}</div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_ae0c102210846bb815bb6596cb0aa7ee6"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#ae0c102210846bb815bb6596cb0aa7ee6">QcnSensorTrafficGenerator::latitude</a></div><div class="ttdeci">double latitude</div><div class="ttdoc">Latitude of this sensor. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00037">QcnSensorTrafficGenerator.h:37</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a838619c582b3df71b009b6cd1de56092"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QcnSensorTrafficGenerator::setLongitude </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>longitude</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set Longitude. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">longitude</td><td>Longitude of sensor. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00181">181</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;                                                             {</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    this-&gt;<a class="code" href="class_qcn_sensor_traffic_generator.html#aaeb48832d02be6da6879b20ccbf27932">longitude</a> = <a class="code" href="class_qcn_sensor_traffic_generator.html#aaeb48832d02be6da6879b20ccbf27932">longitude</a>;</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;}</div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_aaeb48832d02be6da6879b20ccbf27932"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#aaeb48832d02be6da6879b20ccbf27932">QcnSensorTrafficGenerator::longitude</a></div><div class="ttdeci">double longitude</div><div class="ttdoc">Longitude of this sensor. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00038">QcnSensorTrafficGenerator.h:38</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a375d3eaf1ce7792d46f13bd96900c914"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QcnSensorTrafficGenerator::setQcnExplorerSensorId </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>qcnExplorerSensorId</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set QCN Explorer Sensor Id. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">qcnExplorerSensorId</td><td>QCN Explorer Sensor ID. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00190">190</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;                                                                                       {</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    this-&gt;<a class="code" href="class_qcn_sensor_traffic_generator.html#a94979da414e7b879f6c31642c3b449f6">qcnExplorerSensorId</a> = <a class="code" href="class_qcn_sensor_traffic_generator.html#a94979da414e7b879f6c31642c3b449f6">qcnExplorerSensorId</a>;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;}</div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a94979da414e7b879f6c31642c3b449f6"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a94979da414e7b879f6c31642c3b449f6">QcnSensorTrafficGenerator::qcnExplorerSensorId</a></div><div class="ttdeci">unsigned int qcnExplorerSensorId</div><div class="ttdoc">Sensor ID as assigned by QCNExplorer. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00039">QcnSensorTrafficGenerator.h:39</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a7c5683f657aa8c44344985acceae2cd1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QcnSensorTrafficGenerator::setRegionId </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>regionId</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set Region ID. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">regionId</td><td>Region ID. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html#l00199">199</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;                                                                 {</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    this-&gt;<a class="code" href="class_qcn_sensor_traffic_generator.html#a7475a4d95a64a53e641ed8d7b2fd167b">regionId</a> = <a class="code" href="class_qcn_sensor_traffic_generator.html#a7475a4d95a64a53e641ed8d7b2fd167b">regionId</a>;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;}</div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a7475a4d95a64a53e641ed8d7b2fd167b"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a7475a4d95a64a53e641ed8d7b2fd167b">QcnSensorTrafficGenerator::regionId</a></div><div class="ttdeci">unsigned int regionId</div><div class="ttdoc">Region ID as assigned by QCNExplorer. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00040">QcnSensorTrafficGenerator.h:40</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="ae0c102210846bb815bb6596cb0aa7ee6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double QcnSensorTrafficGenerator::latitude</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Latitude of this sensor. </p>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8h_source.html#l00037">37</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8h_source.html">QcnSensorTrafficGenerator.h</a>.</p>

</div>
</div>
<a class="anchor" id="aaeb48832d02be6da6879b20ccbf27932"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double QcnSensorTrafficGenerator::longitude</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Longitude of this sensor. </p>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8h_source.html#l00038">38</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8h_source.html">QcnSensorTrafficGenerator.h</a>.</p>

</div>
</div>
<a class="anchor" id="a94979da414e7b879f6c31642c3b449f6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int QcnSensorTrafficGenerator::qcnExplorerSensorId</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sensor ID as assigned by QCNExplorer. </p>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8h_source.html#l00039">39</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8h_source.html">QcnSensorTrafficGenerator.h</a>.</p>

</div>
</div>
<a class="anchor" id="a7475a4d95a64a53e641ed8d7b2fd167b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int QcnSensorTrafficGenerator::regionId</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Region ID as assigned by QCNExplorer. </p>

<p>Definition at line <a class="el" href="_qcn_sensor_traffic_generator_8h_source.html#l00040">40</a> of file <a class="el" href="_qcn_sensor_traffic_generator_8h_source.html">QcnSensorTrafficGenerator.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>QcnSim/<a class="el" href="_qcn_sensor_traffic_generator_8h_source.html">QcnSensorTrafficGenerator.h</a></li>
<li>QcnSim/<a class="el" href="_qcn_sensor_traffic_generator_8cpp_source.html">QcnSensorTrafficGenerator.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Nov 14 2013 11:18:24 for QCNSim by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
